import request from '@/utils/request'

// 封装登录请求
export function loginAPI(data) {
  return request.post('/sys/login', data)
}

// 封装获取用户基本信息的函数
export const getUserInfoAPI = () => {
  return request.get('/sys/profile')
}

// 封装修改密码函数
export const updatePasswordAPI = (data) => {
  return request.put('/sys/user/updatePass', data)
}
